<?php
$this->pageTitle=Yii::app()->name . ' - Login';
?>

<div class="padding-1">
    <div class="container_24">
        <div class="wrapper">
            <article class="grid_14">
                <div class="padding-top">
                    <h3 class="border-bot custom-blue">FSBO Singapore Dashboard Login</h3>
                    	<?php
						    foreach(Yii::app()->user->getFlashes() as $key => $message) {
						        echo '<div class="flash-' . $key . '">' . $message . "</div>\n";
						    }
						?>
						<?php $form=$this->beginWidget('CActiveForm', array(
							'id'=>'login-form',
							'enableClientValidation'=>true,
							'clientOptions'=>array(
								'validateOnSubmit'=>true,
							),
							'htmlOptions'=>array(
								'class'=>'register-form'
							)
						)); ?>

						<div class="padding-left padding-right padding-bottom padding-top">
							<h4 class="border-bot custom-blue">Enter your information to login now<span class="fright"><font color='e50c0c'>*</font> Indicates required field</span></h4>

							<?php echo $form->labelEx($model,'email'); ?>
							<?php echo $form->textField($model,'email'); ?>
							<?php echo $form->error($model,'email', array('style' => 'color:red; padding-left: 165px;')); ?>
							<div class="hr-space"></div>
							<?php echo $form->labelEx($model,'password'); ?>
							<?php echo $form->passwordField($model,'password'); ?>
							<?php echo $form->error($model,'password', array('style' => 'color:red; padding-left: 165px;')); ?>
							<div class="hr-space"></div>
							<?php echo $form->labelEx($model,'rememberMe'); ?>
							<?php echo $form->checkBox($model,'rememberMe', array('style' => 'margin-left: -117px;')); ?>
							<div class="hr-space"></div>
							<div class="row buttons fright">
								<a class="button-1" onClick="document.getElementById('login-form').submit()"><span class="txt">Login</span></a>
							</div>

							<div class="clear"></div>
						</div>

						<?php $this->endWidget(); ?>
                </div>
            </article>
            <article class="grid_10">
				<div class="padding-top padding-left">
                <h3 class="border-bot custom-blue">Why Using Dashboard?</h3>
                <div class="wrapper border-bot1 title2 why-choose">
                    <table class="why-choose">
						<tr><td><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/why_choose01.png" /></td><td>Get personalized E-mail & SMS alerts</td></tr>
						<tr><td><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/why_choose02.png" /></td><td>Save favorite properties & Manage informations</td></tr>
						<tr><td><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/why_choose03.png" /></td><td>Free to all owners with an active listing on FSBO Singapore</td></tr>
						<tr><td><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/why_choose04.png" /></td><td>Get access to even more functionality to help market your home</td></tr>
					</table>
                </div>
				</div>
            </article>
        </div>
    </div>
</div>